From: Roland McGrath Date: Sat, 8 Jan 1994 21:52:28 +0000 (+0000) Subject: Don't declare sys_errlist; declare strerror instead. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~93535 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=dbc52c10f4d9c6d7d7cca4c14c07048ec5752243;p=emacs.git Don't declare sys_errlist; declare strerror instead. (schedule, main): Call strerror instead of using sys_errlist. --- diff --git a/lib-src/timer.c b/lib-src/timer.c index c5265d5a9c9..8676b196597 100644 --- a/lib-src/timer.c +++ b/lib-src/timer.c @@ -30,7 +30,7 @@ extern int errno; -extern char *sys_errlist[], *malloc (); +extern char *strerror (), *malloc (); extern time_t time (); /* @@ -116,7 +116,7 @@ schedule (str) if (! ep->token) { fprintf (stderr, "%s: malloc %s: %s%c%s\n", - pname, sys_errlist[errno], str, FS, p); + pname, strerror (errno), str, FS, p); return; } @@ -282,13 +282,13 @@ main (argc, argv) if (fcntl (0, F_SETOWN, getpid ()) == -1) { fprintf (stderr, "%s: can't set ownership of stdin\n", pname); - fprintf (stderr, "%s\n", sys_errlist[errno]); + fprintf (stderr, "%s\n", strerror (errno)); exit (1); } if (fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) | FASYNC) == -1) { fprintf (stderr, "%s: can't request asynchronous I/O on stdin\n", pname); - fprintf (stderr, "%s\n", sys_errlist[errno]); + fprintf (stderr, "%s\n", strerror (errno)); exit (1); } #endif /* USG */